package Fuxi;

public class Temp {
	public static void main(String[] args) {
		int [] arr= {12,23,45,56,67,78,89};
		int temp=arr[0];
		for (int i = 1; i < arr.length; i++) {
			if(arr[i]>arr[0]) {
				temp=arr[i];
			}
		}
		System.out.println(temp);
	} 

}
 